package ch1;

import java.util.Scanner;

public class Calc2 {

	public static void main(String[] args) {
		// double余数

		Scanner in = new Scanner(System.in);
		System.out.println("请输入整数两个：");
		double a = in.nextDouble();
		double b = in.nextDouble();
		double shang = a / b;
		double yu = a % b;
		System.out.println("商" + shang + ",余数=" + yu);
		a++;
		System.out.println(a);

	}

}
